/*
 * MR264Sink.h
 *
 *  Created on: 22 janv. 2010
 *      Author: mdulongpont
 */

#ifndef MR264SINK_H_
#define MR264SINK_H_

#ifndef MRSINK_H_
#include "MRSink.h"
#endif
class MR264Sink: public MRSink {
public:
	static MR264Sink* createNew(UsageEnvironment& env, unsigned bufferSize = 10000);

protected:
	MR264Sink(UsageEnvironment& env, unsigned bufferSize);
	virtual ~MR264Sink();

protected:
	// redefined virtual functions:
	virtual Boolean sourceIsCompatibleWithUs(MediaSource& source);
	virtual void afterGettingFrame1(unsigned frameSize,struct timeval presentationTime);
};
#endif /* MR264SINK_H_ */
